package collection.list;

/**
 * 仿写栈
 */
public class Demo04MyStack {
    public static void main(String[] args) {
        MyStack<String> myStack = new MyStack<>();
        myStack.push("靳海含");
        myStack.push("林志玲");
        myStack.push("迪丽热巴");
        System.out.println(myStack);
        myStack.show();

        System.out.println(myStack.peak());

        myStack.pop();
        myStack.show();
    }
}
